ShellInvertLightnessEffect *self = SHELL_INVERT_LIGHTNESS_EFFECT (effect);
ClutterActor *actor;
guint8 paint_opacity;
+ CoglFramebuffer *fb = cogl_get_draw_framebuffer ();
actor = clutter_actor_meta_get_actor (CLUTTER_ACTOR_META (effect));
paint_opacity = clutter_actor_get_paint_opacity (actor);
paint_opacity,
paint_opacity,
paint_opacity);
- cogl_push_source (self->pipeline);
-
- cogl_rectangle (0, 0, self->tex_width, self->tex_height);
-
- cogl_pop_source ();
+ cogl_framebuffer_draw_rectangle (fb, self->pipeline,
+ 0, 0, self->tex_width, self->tex_height);
}
static void